package com.jxc.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Purchase entity. @author MyEclipse Persistence Tools
 */

public class Purchase implements java.io.Serializable {

	// Fields

	private Integer id;
	private User user;
	private Order order;
	private Staff staff;
	private Enterprise enterprise;
	private Double totalamount;
	private String payment;
	private String type;
	private String state;
	private Date purcasetime;
	private Set purchaselists = new HashSet(0);
	private Set storages = new HashSet(0);

	// Constructors

	/** default constructor */
	public Purchase() {
	}

	/** full constructor */
	public Purchase(User user, Order order, Staff staff, Enterprise enterprise,
			Double totalamount, String payment, String type, String state,
			Date purcasetime, Set purchaselists, Set storages) {
		this.user = user;
		this.order = order;
		this.staff = staff;
		this.enterprise = enterprise;
		this.totalamount = totalamount;
		this.payment = payment;
		this.type = type;
		this.state = state;
		this.purcasetime = purcasetime;
		this.purchaselists = purchaselists;
		this.storages = storages;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Order getOrder() {
		return this.order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

	public Enterprise getEnterprise() {
		return this.enterprise;
	}

	public void setEnterprise(Enterprise enterprise) {
		this.enterprise = enterprise;
	}

	public Double getTotalamount() {
		return this.totalamount;
	}

	public void setTotalamount(Double totalamount) {
		this.totalamount = totalamount;
	}

	public String getPayment() {
		return this.payment;
	}

	public void setPayment(String payment) {
		this.payment = payment;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Date getPurcasetime() {
		return this.purcasetime;
	}

	public void setPurcasetime(Date purcasetime) {
		this.purcasetime = purcasetime;
	}

	public Set getPurchaselists() {
		return this.purchaselists;
	}

	public void setPurchaselists(Set purchaselists) {
		this.purchaselists = purchaselists;
	}

	public Set getStorages() {
		return this.storages;
	}

	public void setStorages(Set storages) {
		this.storages = storages;
	}

}